{include file="public/header" /}





<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>合同管理</h3>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>



    <form method="get" name="formSearch" id="formSearch">
        <div class="ds-search-form">
            <dl>
                <dt>名称</dt>
                <dd><input type="text" value="{$Request.param.contract_name}" name="contract_name" id="contract_name" class="txt" /></dd>
            </dl>
            <dl>
                <dt>类型</dt>
                <dd>
                    <select name="contract_type" id="contract_type">
                        <option value="">请选择</option>
                        <option value="客户" {$Request.param.contract_type == '客户' ? 'selected' : ''}>客户</option>
                        <option value="大客户" {$Request.param.contract_type == '大客户' ? 'selected' : ''}>大客户</option>
                        <option value="运营商" {$Request.param.contract_type == '运营商' ? 'selected' : ''}>运营商</option>
                        <option value="供应商" {$Request.param.contract_type == '供应商' ? 'selected' : ''}>供应商</option>
                    </select>
                </dd>
            </dl>
            <dl>
                <dt>上传人</dt>
                <dd><input type="text" value="{$Request.param.contract_created_by}" name="contract_created_by" id="contract_created_by" class="txt" /></dd>
            </dl>
            <dl>
                <dt>时间</dt>
                <dd>
                    <input class="txt date" type="text" value="{$Request.param.contract_time}" id="contract_time" name="contract_time">
                </dd>
            </dl>
            <div class="btn_group">
                <input type="submit" class="btn" value="{$Think.lang.ds_search}">

            </div><a href="{:url('Contract/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}" style="height:30px; line-height: 30px;">{$Think.lang.ds_cancel}</a>
        </div>
    </form>


    <form method="post" id="store_form">
        <table class="ds-default-table">
            <thead>
                <tr class="thead">
<!--                    <th class="&lt;!&ndash;&ndash;&gt;w48">序号</th>-->
                    <th>名称</th>
                    <th>合同文件</th>
                    <th>图片</th>
                    <th>备注</th>
                    <th>上传人</th>
                    <th>类型</th>
                    <th>添加时间</th>
                   <!--  <th class="align-center">{$Think.lang.store_state}</th>
                   <th class="align-center">{$Think.lang.bind_all_gc}</th> -->
                    <th class="align-center">{$Think.lang.ds_handle}</th>
                </tr>
            </thead>
            {notempty name="store_list"}
            <tbody>
                {foreach name="store_list" item="v" key="k" }
                <tr class="" id="ds_row_{$v.id}">
                    <td>
                        {$v.contract_name}
                    </td>
<!--                    <td>{$v.contract_name}</td>-->
                    <td><a href="/uploads/home/store_joinin/{$v.contract_file}" title="点击查看" target="_blank">{$v.contract_file}</a></td>
                    <td><a href="/uploads/home/store_joinin/{$v.contract_img}" title="点击查看" target="_blank">{$v.contract_img}</a></td>
                    <td>{$v.contract_other}</td>
                    <td>{$v.admin_name}</td>
                    <td>{$v.contract_type}</td>
                    <td>{$v.contract_time|date='Y-m-d H:i:s',###}</td>

                    <td class="align-center w200">
                        <a href="javascript:dsLayerOpen('{:url('Contract/show',['id'=>$v.id])}','{查看}-{$v.contract_name}')" class="dsui-btn-edit"><i class="iconfont"></i>查看</a>
                        <a href="javascript:dsLayerOpen('{:url('Contract/edit',['id'=>$v.id])}','{$Think.lang.ds_edit}-{$v.contract_name}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>

                       <a href="javascript:dsLayerConfirm('{:url('Contract/del',['id'=>$v.id])}','{$Think.lang.ds_ensure_del}',{$v.id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
                    </td>
                </tr>
               {/foreach}
            </tbody>
            {else/}
            <tbody>
                <tr class="no_data">
                    <td colspan="15">{$Think.lang.ds_no_record}</td>
                </tr>
            </tbody>
            {/notempty}
        </table>
        {$show_page}
    </form>
</div>
<script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
<script>
    $('#contract_time').datepicker({dateFormat: 'yy-mm-dd'});
</script>
